//
//  MSRewardTVC.m
//  MSMain
//
//  Created by Dgh Hv on 2018/9/19.
//  Copyright © 2018年 土豆. All rights reserved.
//

#import "MSRewardTVC.h"
#import "MSRewardOrInviteListModel.h"

@interface MSRewardTVC()
@property (weak, nonatomic) IBOutlet UIImageView *headImage;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *rewardNum;
@property (weak, nonatomic) IBOutlet UILabel *inviteTime;

@end

@implementation MSRewardTVC

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    ViewRadius(self.headImage, 3);
    self.headImage.contentMode = UIViewContentModeScaleAspectFill;
    // Initialization code
}

-(void)getInfoFromModel:(MSRewardOrInviteListModel *)model
{
    [self.headImage sd_setImageWithURL:URLTOSTRING(model.HeadImg)];
    self.name.text = model.UserName;
    self.inviteTime.text = NSStringFormat(@"邀请时间 %@",model.CreateTime);
    self.rewardNum.text = NSStringFormat(@"+%@元",model.Money);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
